import { S } from '../../s';
import { IPSAppDEGridView } from './ipsapp-degrid-view';
import { PSAppDEMultiDataViewImpl } from './psapp-demulti-data-view-impl';

export class PSAppDEGridViewImpl
  extends PSAppDEMultiDataViewImpl
  implements IPSAppDEGridView
{
  get gridRowActiveMode(): 0 | 1 | 2 {
    return this.M.gridRowActiveMode;
  }

  get enableExport(): boolean {
    return this.M.enableExport;
  }

  get enableImport(): boolean {
    return this.M.enableImport;
  }

  get enableRowEdit(): boolean {
    return this.M.enableRowEdit;
  }

  get rowEditDefault(): boolean {
    return this.M.rowEditDefault;
  }
  get cls(): string {
    return 'PSAppDEGridViewImpl';
  }
  instanceof(cls: string): boolean {
    if (cls == S._4c || cls == S._22) return true;
    return super.instanceof(cls);
  }
}
